package dancetiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// DancePetActivities 宠物活动
type DancePetActivities struct {
	Id                 int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	ActivitiesIcon     string         `json:"activitiesIcon" gorm:"column:activities_icon;type:varchar(256);not null;default:'';comment:活动图片"`
	Name               string         `json:"name" gorm:"column:name;type:varchar(256);not null;default:'';comment:活动名称"`     // 活动名称
	StartTime          int64          `json:"startTime" gorm:"column:start_time;type:bigint;default:0;not null;comment:开始时间"` // 开始时间
	EndTime            int64          `json:"endTime" gorm:"column:end_time;type:bigint;default:0;not null;comment:结束时间"`     // 结束时间
	DaySpeedyCardTimes int            `json:"daySpeedyCardTimes" gorm:"column:day_speedy_card_times;type:bigint;default:0;not null;comment:每天扫荡次数限制"`
	CreatedId          int64          `json:"created_id" gorm:"column:created_id;type:bigint;default:0;not null;comment:创建人id"`  // 创建人id
	UpdateId           int64          `json:"update_id" gorm:"column:update_id;type:bigint;default:0;not null;comment:更新人id"`    // 更新人id
	IsUp               int            `json:"isUp" gorm:"column:is_up;type:tinyint;default:0;not null;comment:是否上架 0:未上架 1:上架中"` //0:未上架 1:上架中
	Remark             string         `json:"remark" gorm:"column:remark;type:varchar(256);not null;default:'';comment:备注"`
	CreatedAt          time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt          time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt          gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
